const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token, // token
  userInfo: state => state.user.userInfo, // 用户信息
  permission_routes: state => state.permission.routes, // 全部路由
  addRoutes: state => state.permission.addRoutes, // 权限路由
  roles: state => state.user.roles // 用户权限
}
export default getters
